﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="CreateNewStaff.aspx.cs" Inherits="TimeWork.CreateNewStaff" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Bredcrumb_child" ContentPlaceHolderID="Bredcrumb" runat="server">
    <li><a href="#" class="report">Cấu hình</a></li>>
    <li><a href="ListStaff.aspx">Quản lý </a></li>>
    <li><a href="#">Thêm mới nhân viên</a></li>
</asp:Content>
<asp:Content ID="MainContent_child" ContentPlaceHolderID="MainContent" runat="server">
    <form id="FrmCreateStaff" runat="server">
        <asp:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </asp:ToolkitScriptManager>
        <div class="info-box" style="width: 400px; margin: 0 auto;">
        <h3>Thêm mới nhân viên</h3>
        <table>
            <tr>
                <td colspan="2"><i>Các trường có dấu * là bắt buộc</i></td>
            </tr>
            <tr>
                <td>Email*:</td>
                <td><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>&nbsp;&nbsp;
                    <asp:Label ID="lblEmail" runat="server" CssClass="validate"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>Họ tên*:</td>
                <td><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Mật khẩu*:</td>
                <td><asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Xác nhận mật khẩu*:</td>
                <td><asp:TextBox ID="txtPasswordConfirm" runat="server" TextMode="Password"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Phòng ban*:</td>
                <td>
                    <asp:DropDownList ID="ddlResultUnit" runat="server" Width="195px">
                    </asp:DropDownList>
                    <asp:Label ID="lblEmail0" runat="server" CssClass="validate"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>Ngày sinh:</td>
                <td>
                    <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox>&nbsp;<asp:Image ID="imgDate"
                        runat="server" ImageUrl="~/resources/img/icons/calendar.png" />&nbsp;
                    <asp:CalendarExtender ID="CalendarExtender" runat="server" 
                        PopupPosition="BottomLeft" PopupButtonID="imgDate" 
                        TargetControlID="txtBirthday" Format="dd/MM/yyyy">
                    </asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td>Giới tính:</td>
                <td>
                    <asp:DropDownList ID="ddlGender" runat="server">
                        <asp:ListItem Text="Nam" Value="True"></asp:ListItem>
                        <asp:ListItem Text="Nữ" Value="False"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Số đt:</td>
                <td><asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Địa chỉ hiện tại:</td>
                <td><asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Chức vụ:</td>
                <td><asp:TextBox ID="txtPosition" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Ngạch/Bậc:</td>
                <td><asp:TextBox ID="txtScale" runat="server" Width="100px"></asp:TextBox> / <asp:TextBox ID="txtLevel" runat="server" Width="50px"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Quyền hạn*:</td>
                <td>
                    <asp:DropDownList ID="ddlPermission" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <asp:Button ID="btnCreate" runat="server" Text="Tạo mới" 
                        CssClass="mybutton color-yellow" onclick="btnCreate_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</asp:Content>
